home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-1.iso / utility / horst_2.zip / QECHO.DOC < prev    next >
Text File  |  1995-12-18  |  1KB  |  47 lines

  1. ------------------------------------------------------------------------
  2. QECHO   Quote echo                              (c) 1994 Horst Schaeffer
  3. ------------------------------------------------------------------------
  4.  
  5. QECHO echos the following data:
  6.  
  7.     +  Strings in 'single' or "double" quotes
  8.     +  ASCII byte values (decimal)
  9.     +  Control codes with caret, like ^L (=ASCII 12)
  10.     +  Symbols: CR (13), LF (10), FF (12), ESC (27)
  11.  
  12. No terminating CR/LF is output unless specified (!)
  13.  
  14.     thus:         QECHO "something" CR LF
  15.     is same as:   ECHO something
  16.  
  17. Pipes and redirections as usual. Separators (blank, comma, semicolon)
  18. allowed. If any invalid data occur, the rest of the line will be ignored
  19. (errorlevel > 0).
  20.  
  21. Some examples:
  22.  
  23. ++  Write to a file without CR+LF
  24.  
  25.     QECHO "SET X="> some.bat
  26.  
  27. ++  ANSI cursor without CR+LF
  28.  
  29.     QECHO ESC "[0;40H"
  30.  
  31. ++  Pipe multiple lines or CR's
  32.  
  33.     QECHO CR,"N",CR | format A: /q/u /v:""       (FORMAT, no prompts)
  34.     QECHO "D100,200",CR,"Q",CR | debug PROG.COM  (DUMP thru DEBUG)
  35.  
  36. ++  Send control codes to printer (without CR/LF)
  37.  
  38.     QECHO FF > LPT1                           (form feed)
  39.     QECHO ESC "@", ESC "l" 10 > LPT1          (reset, margin /EPSON)
  40.  
  41. ++  Redirect output with pipe- and redirection symbols
  42.     (double quotes required!)
  43.  
  44.     QECHO "echo.|date > tmp.dat",CR LF > xyz.bat
  45.  
  46. = 21 FEB 1995
  47.